Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented May 6, 2025

After we receive a (partial) checkpoint complete and have validated checksums, we set last_op to the last_op_id of the checkpoint for involved buckets.

Due to an ignored filter in syncLocalDatabase, we were raising last_op even for buckets with lower priorities when receiving a partial completion for a higher priority. Having a wrong value in last_op_id is a problem when the sync stream gets reset without completing a full checkpoint afterwards, because we use that value to create the next request when reconnecting.

@simolus3 simolus3 requested a review from rkistner May 6, 2025 09:37
Copy link

changeset-bot bot commented May 6, 2025

🦋 Changeset detected

Latest commit: e9b90bb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@powersync/common Patch
@powersync/node Patch
@powersync/op-sqlite Patch
@powersync/react-native Patch
@powersync/tanstack-react-query Patch
@powersync/web Patch
@powersync/diagnostics-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@simolus3 simolus3 merged commit 52a7733 into main May 6, 2025
6 checks passed
@simolus3 simolus3 deleted the fix-missing-names-filter branch May 6, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants